{template header}
<script language="javascript" type="text/javascript">
J(function(){
	bopuruiObj.product = {
		init: function(){		
			J('#intoShopping').click(function(){
				<!--{if !$userInfo[userId]}-->
				ajaxmenu("/product-detail-{$categoryId}.htm?verify=islogin&tourl={$_SERVER['REQUEST_URI']}", 0);
				<!--{else}-->
				if(J('input[name=productId[]]:checked').length==0){
					alert('请选择产品！');
				}else{
					var productId = '';
					J('input[name=productId[]]:checked').each(function(){productId = productId + J(this).val() + '-';});
					ajaxmenu('/product-detail-{$categoryId}.htm?intoShopping=add&pid='+productId, 0, 0, 0, function(s){J('#cartCount').html(J('#ShopcartCount').find('b').eq(0).html())});
				}
				<!--{/if}-->
			});
			
			J('#ImmediatelyShopping').click(function(){
				<!--{if !$userInfo[userId]}-->
				ajaxmenu("/product-detail-{$categoryId}.htm?verify=islogin&tourl={$_SERVER['REQUEST_URI']}", 0);
				<!--{else}-->
				if(J('input[name=productId[]]:checked').length==0){
					alert('请选择产品！');
				}else{
					var productId = '';
					J('input[name=productId[]]:checked').each(function(){productId = productId + J(this).val() + '-';});
					location.href='/product-detail-{$categoryId}.htm?intoShopping=add&action=now&pid='+productId;
				}
				<!--{/if}-->
			});
			
			J('#selectAll').click(function(){
				if(J(this).attr('checked')==true){
					J('input[name=productId[]]').attr('checked', true)
				}else{
					J('input[name=productId[]]').attr('checked', false)
				}
			});
			
			bopuruiObj.command.mtabletr();
			bopuruiObj.command.selectBoxAll();
		}	
	}
	bopuruiObj.product.init();
});
</script>
<div class="top_1"></div>
<div class="top_2">
	  <div class="con_left">
		  {template userlogin}		  
		  {template product_left}			
	  </div>
        
  <div class="con_box_left">       

         <div class="pro_cx_bg">
 <!--   
   <ul>
		<li><a href="product-serchdetail.htm?letter=A">A</a></li>
        <li class="xian"></li>
		<li><a href="product-serchdetail.htm?letter=B">B</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=C">C</a></li>
        <li class="xian"></li>
		<li><a href="product-serchdetail.htm?letter=D">D</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=E">E</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=F">F</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=G">G</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=H">H</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=I">I</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=J">J</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=K">K</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=L">L</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=M">M</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=N">N</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=O">O</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=P">P</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=Q">Q</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=R">R</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=S">S</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=T">T</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=U">U</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=V">V</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=W">W</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=X">X</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=Y">Y</a></li>
		<li class="xian"></li>
        <li><a href="product-serchdetail.htm?letter=Z">Z</a></li>
      </ul>  
      -->
    </div>
  
      <form id="form1" name="form1" method="post" action="">
      <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:5px; font-size:14px" class="table1">
		<tbody>
          <th>
            <td height="30" align="center" bgcolor="#EAEAEA"><label>全选<input type="checkbox" id="selectAll" value="all" /></label></td>
            <td align="center" bgcolor="#EAEAEA"><img src="images/darkgreen/l_013.gif" width="2" height="20" /></td>
            <td align="center" bgcolor="#EAEAEA"><strong>订货号</strong></td>
            <td align="center" bgcolor="#EAEAEA"><img src="images/darkgreen/l_013.gif" width="2" height="20" /></td>
            <td align="center" bgcolor="#EAEAEA"><strong>产品说明</strong></td>
            <td align="center" bgcolor="#EAEAEA"><img src="images/darkgreen/l_013.gif" width="2" height="20" /></td>
            <td colspan="3" align="center" bgcolor="#EAEAEA"><strong>存货类型</strong></td>
            <td align="center" bgcolor="#EAEAEA"><img src="images/darkgreen/l_013.gif" width="2" height="20" /></td>
            <td align="center" bgcolor="#EAEAEA"><strong>市场价</strong></td>
			<td align="center" bgcolor="#EAEAEA"><img src="images/darkgreen/l_013.gif" width="2" height="20" /></td>
            <td align="center" bgcolor="#EAEAEA"><strong>促销价</strong></td>
            <td align="center" bgcolor="#EAEAEA"><img src="images/darkgreen/l_013.gif" width="2" height="20" /></td>
            <td align="center" bgcolor="#EAEAEA"><strong>收藏</strong></td>
          </th>
		    <!--{loop $productArr $key $list}-->
			<tr id="tr_$list[productId]">
			  <td height="40" colspan="2" align="center" style="border-bottom:1px dashed #999999"><input type="checkbox" name="productId[]" Tags="mark" value="{$list[productId]}" /></td>
				<td colspan="2" align="center" style="border-bottom:1px dashed #999999"><font class="ari">$list[productNo]</font></td>
				<td colspan="2" align="center" style="border-bottom:1px dashed #999999"><a class='alt' href="#" _fcksavedurl="#"><span>{$list[content]}</span><font class="ari" >{$list[contents]}</font></a></td>
				<td colspan="4" align="center" style="border-bottom:1px dashed #999999">{$list[stockType]}</td>
				<td colspan="2" align="center" style="border-bottom:1px dashed #999999"><font class="scj">￥$list[ourPrice]</font></td>
				<td colspan="2" align="center" style="border-bottom:1px dashed #999999"><font class="hyj">￥$list[promotionsPrice]</font></td>
				<td colspan="2" align="center" style="border-bottom:1px dashed #999999"><a href="favorite-add-{$list[productId]}.htm" onclick="ajaxmenu(this.href, 0)">收藏</a></td>
			</tr>
			<!--{/loop}-->
			<!--{if $numCount==0}-->
			<tr>
				<td colspan="13" height="30" style="padding-left:5px;"><font color="#FF0000">还没有促销产品...</font></td>
			</tr>
			<!--{/if}-->
		  </tbody>
        </table>
		<!--{if $multipage!=''}-->	
        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:5px;">
          <tr>
            <td height="30" align="right" bgcolor="#EAEAEA">
				<div class="pages">
					<div class="scott" style="text-align:center;">
						<!--{$multipage}-->	
					</div>					
				</div>
			
		 </td>
          </tr>
        </table>
		<!--{/if}-->
		<!--{if $numCount>0}-->
        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:5px;">
              <tr>
                <td width="19%" height="40" valign="middle">
				<img id="ImmediatelyShopping" src="images/darkgreen/l_015.gif" style="cursor:pointer" />
                <td width="81%" valign="middle">
				<img id="intoShopping" src="images/darkgreen/l_016.gif" style="cursor:pointer" />
				</td>
              </tr>
        </table>
		<!--{/if}-->
      </form>
    </div>
  </div>
  </div>
  <div class="top_3"></div>
{template footer}
</body>
</html>